package ZuoYe02_WuCanFangFa_0430;

//1:汽车由发动机，轮胎，车架，底盘组成，
//有外观，价格等属性
//有启动，停止，鸣笛等方法
//发动机有排量，重量，品牌，马力等属性
//汽车启动 由  发动机完成，分为   压缩空气，雾化汽油，点火，排废烟
//四步完成。
public class CarTest {

	public static void main(String[] args) {

		Car car = new Car();
		car.name = "二手奥拓";
		car.brand = "奥拓";
		car.price = 8.88;
		car.color = "红色";

		car.tires = "二手轮胎";
		car.frame = "二手车架";
		car.chassis = "二手底盘";

		car.e.name = "EA211";
		car.e.brand = "EA";
		car.e.power = 115;
		car.e.displacement = 30;
		car.e.weight = 35;

		car.attribute();

		car.start();
		car.whistle();
		car.stop();
	}
}
